package com.secxiot.provider.narcotic.dao;

import com.secxiot.provider.narcotic.entity.NarcoticTakeDestroyDo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface NarcoticTakeDestroyMapper {


    /**
     * 取药销毁记录 信息
     *
     * @param takeDestroyId 取药记录id
     * @return
     */
    NarcoticTakeDestroyDo getNarcoticTakeDestroyById(@Param("takeDestroyId") Long takeDestroyId);

    /**
     * 取药销毁记录 列表
     *
     * @param map
     * @return
     */
    List<NarcoticTakeDestroyDo> selectNarcoticTakeDestroy(Map<String, Object> map);

    /**
     * 添加取药销毁记录
     *
     * @param narcoticTakeDestroyDo
     * @return
     */
    Long insert(NarcoticTakeDestroyDo narcoticTakeDestroyDo);

    /**
     * 修改取药销毁记录
     *
     * @param narcoticTakeDestroyDo
     * @return
     */
    Long updateByPrimaryKey(NarcoticTakeDestroyDo narcoticTakeDestroyDo);

    /**
     * 取药销毁记录
     *
     * @param patientDrugsRecordId 申请用药记录Id
     * @return
     */
    NarcoticTakeDestroyDo selectNarcoticTakeDestroyByPatientDrugsRecordId(Long patientDrugsRecordId);
}